#pragma once
#define _CRT_SECURE_NO_WARNINGS

#include<iostream>
#include<algorithm>
#include<cstring>
#include<vector>
#include<string>

const int N = 110;

bool check(int i, int j, int g[][N]);